package com.gugee.ins.common.dal.service.mark.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.mark.InsRkBloggerFgDayExtMapper;
import com.gugee.ins.common.dal.service.mark.InsRkBloggerFgDayDao;
import com.gugee.ins.common.model.mysql.mark.InsRkBloggerFgDay;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * insBlogger dao
 * @author Huangxin
 */
@Slf4j
@Service
public class InsRkBloggerFgDayDaoImpl extends ServiceImpl<InsRkBloggerFgDayExtMapper, InsRkBloggerFgDay> implements InsRkBloggerFgDayDao {
    /**
     * 日榜
     * @param dateCode
     * @param yesterday
     * @param category
     */
    @Override
    public void insertRkBloggerFgDay(int dateCode,int yesterday,String category){
        long now = System.currentTimeMillis() / 1000;
        baseMapper.insertRkBloggerFgDay(dateCode,yesterday,category,now);
    }
}
